/* eslint-disable import/prefer-default-export */
import { ARRAY_TYPE, OBJECT_TYPE } from '@/pages/Validator/settings';

export function nodeName(nodeType) {
  switch (nodeType) {
    case OBJECT_TYPE:
      return '对象';
    case ARRAY_TYPE:
      return '数组';
    default:
      return '叶子';
  }
}
